﻿using System.Collections.Generic;

namespace Microhard.Framework.MVCHelper
{
    /// <summary>
    /// MVC中DataGrid分页的类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IPagedList<T> : IList<T>
    {
       /// <summary>
       /// 当前页索引
       /// </summary>
        int PageIndex { get; }

        /// <summary>
        /// 
        /// </summary>
        int PageSize { get; }
        int TotalCount { get; }
        int TotalPages { get; }
        bool HasPreviousPage { get; }
        bool HasNextPage { get; }
    }
}
